// import Vue from 'vue'
// import VueRouter from 'vue-router'
import rt_blogs from './rt_blogs'
import rt_users from './rt_users'
import rt_forum from './rt_forum'
import register from './rt_users/register'
import log_in from './rt_users/log_in'
import update_pw from './rt_users/update_pw'
import find_pw from './rt_users/find_pw'
import article from './article/index'
import rz from './rz/index'
import userInfo from './userInfo/index.js'
import foot from './foot/index.js'
import music from './music'
import admin from './admin'
import albums from './albums'
import videos from './videos'
import look_videos from './look_videos'
import resource from './resource'
import upload from './upload'
Vue.use(VueRouter)

const routes = [
  {
    path: "/",
    redirect: '/blogs'
  },
  rt_blogs,
  rt_users,
  rt_forum,
  register,
  log_in,
  update_pw,
  find_pw,
  article,
  rz,
  userInfo,
  foot,
  music,
  admin,
  albums,
  videos,
  look_videos,
  resource,
  upload
]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router
